<!DOCTYPE html>
<html lang="en">

    <head>
        <meta charset="utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
        <title>电来来-后台登录 | 后台管理系统</title>
        <meta content="Responsive admin theme build on top of Bootstrap 4" name="description" />
        <meta content="Themesdesign" name="author" />
        <link rel="shortcut icon" href="/admin/assets/images/favicon.ico">

        <link href="http://cdn.bootstrapmb.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" type="text/css">
        <link href="/admin/assets/css/metismenu.min.css" rel="stylesheet" type="text/css">
        <link href="/admin/assets/css/icons.css" rel="stylesheet" type="text/css">
        <link href="/admin/assets/css/style.css" rel="stylesheet" type="text/css">

    </head>

    <body>

        <!-- Begin page -->
        <div class="accountbg"></div>
        <div class="wrapper-page">
                <div class="card card-pages shadow-none">
    
                    <div class="card-body">
                        <div class="text-center m-t-0 m-b-15">
                                <a href="index.html" class="logo logo-admin"><img src="/admin/assets/images/logo-dark.png" alt="" height="24"></a>
                        </div>
                        <h5 class="font-18 text-center">登录电来来后台管理系统</h5>
    
                        <form id="logform" class=" form-horizontal m-t-30 " action="/dexonzh-admin">
    
                            <div class="form-group">
                                <div class="col-12">
                                        <label>用户名</label>
                                    <input class="form-control" type="text"  placeholder="请输入用户名" pattern="[A-Za-z0-9]{6,30}">
                                    <div class="invalid-feedback"><small>请输入用户名6-30位字母或数字！</small></div>
                                </div>
                            </div>
    
                            <div class="form-group">
                                <div class="col-12">
                                        <label>密码</label>
                                    <input class="form-control" type="password" placeholder="请输入密码">
                                </div>
                            </div>
    						<div class="form-group">
                                <div class="col-12">
                                    <label>验证码</label>
                                    <input class="form-control " type="password"   placeholder="请输入验证码">
                                    <input style="display: block-inline; width:95px;height:25px;" type="image" src="/api/dexonzh-admin/getVerify">
                                    <a href="/api/dexonzh-admin/getVerify?123=456">看不清?换一张</a>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-12">
                                    <div class="checkbox checkbox-primary">
                                        <div class="custom-control custom-checkbox">
                                             <input type="checkbox" class="custom-control-input" id="customCheck1">
                                             <label class="custom-control-label" for="customCheck1"> 记住账号</label>
                                           </div>
                                    </div>
                                </div>
                            </div>
    
                            <div class="form-group text-center m-t-20">
                                <div class="col-12">
                                    <button class="btn btn-primary btn-block btn-lg waves-effect waves-light" type="submit">登录</button>
                                </div>
                            </div>
    
                            <div class="form-group row m-t-30 m-b-0">
                                <div class="col-sm-7">
                                    <a href="pages-recoverpw.html" class="text-muted"><i class="fa fa-lock m-r-5"></i> 忘记密码?</a>
                                </div>
                            </div>
                        </form>
                    </div>
    
                </div>
            </div>
        <!-- END wrapper -->

        <!-- jQuery  -->
        <script src="/admin/assets/js/jquery.min.js"></script>
        <script src="http://cdn.bootstrapmb.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
        <script src="/admin/assets/js/metismenu.min.js"></script>
        <script src="/admin/assets/js/jquery.slimscroll.js"></script>
        <script src="/admin/assets/js/waves.min.js"></script>

        <!-- App js -->
        <script src="/admin/assets/js/app.js"></script>
        <script>
        	$(function(e){
        		$("#logform").submit(function(e){
        			 	const f=$(this)
        			 
        				console.log(f);
        		        if(f[0].checkValidity()===false){
        		          e.preventDefault()
        		          e.stopPropagation()
        		        }
        		        f.addClass("was-validated")
           			return false;
        		})
        	});
        </script>
    </body>

</html>